To create a tween track, you must:
The sample code shown in this section creates a tween sample that interpolates a short integer from 255 to 0. The tween media is attached to the sound track of a QuickTime movie to modify the sound track's volume. Thus it creates a volume fadeout using the tween track. The data type for the tween component is kTweenTypeShort.
The sample code shown in Listing 1 creates a new track ( t ) to be used as the tween track and new tween media (type TweenMediaType ).
| Previous | Chapter Contents | Chapter Top | Next |